process.env.NODE_ENV = "development";

const { merge } = require("webpack-merge");
const commonConfig = require("./webpack.common");
const path = require("path");
const { DefinePlugin } = require("webpack");

module.exports = merge(commonConfig, {
  mode: "development",
  devtool: "inline-source-map",
  devServer: {
    port: 4001,
    static: path.resolve(__dirname, "../dist"),
  },
  plugins: [
    new DefinePlugin({ "process.env.NODE_ENV": JSON.stringify("development") }),
  ],
});
